<?php
include("../db_connect.php");
$userid = $_GET['ids'];
	$data = explode("," , $userid);
	$x = "yes";
	for($i=0; $i<=count($data)-1; $i++ ){
		
			$sql = "UPDATE tblmessage SET view='".$x."' where id= '".$data[$i]."' "; 
			mysql_query($sql)or die(mysql_error());
	}

	if(mysql_affected_rows() ){
		echo $sql;
	}
	else{
		echo $sql;
	}
?>